import Vue from "vue";
import Vuex from "vuex"
Vue.use(Vuex);
let store = new Vuex.Store({
    state: {
        id: 0,
        tableData: []
    },
    mutations: {
        setId(state, id) {
            state.id = id
        },
        setTableData(state, tableData) {
            state.tableData = tableData;
        }
    },
    getters: {
        getId(state) {
            return state.id
        },
        getTableData(state) {
            return state.tableData
        }
    },
    actions: {},
    modules: {}
})

export default store